import { createApp } from 'vue'
import App from './App.vue'
import elementPlus from 'element-plus';
import 'element-plus/dist/index.css'
import * as ELIcons from '@element-plus/icons-vue'

import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import router from './router'
import axios from './axios/';
import store from './store/';
import mainContainer from "components/main-container/index.vue";
import './styles/common.scss'
import './permission'; // 权限
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import en from 'element-plus/es/locale/lang/en'
const app=createApp(App);
for (let iconName in ELIcons) {
	app.component(iconName, ELIcons[iconName])
}	
// 注册全局容器
app.component("mainContainer", mainContainer);
app.use(elementPlus,{ size: store.getters.sizeKey,  locale: zhCn, })
app.use(router)
app.use(store)
app.use(Avue)
app.config.globalProperties.$axios = axios
app.mount('#app')


